<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1, user-scalable=no" />
    <title>买家订单</title>
    <link rel="stylesheet" href="../css/buy_list.css">
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
</head>
<body>
<div class="index_top">
    <div  class="top_left">
        <img class="l_img" src="//cdn.66173.cn/mobile/trading/image/index_image/back.png" alt="">
    </div>
    <div class="top_contant">
        买家订单
    </div>
</div>
<div class="buy_list_tab">
    <li class=" lll">全部</li>
    <li class="lll">待付款</li>
    <li  class="lll">待发货</li>
    <li  class="lll">待收货</li>

</div>
<div class="buy_list_tab_list">
    {if $order_list}
        {foreach from=$order_list item=list}
        <a class="buy_list_item" href="trading_center.php?act=order_detail&id={$list.id}">
            <div class="buy_list_item_1 clearfix">
                <div class="dingdan_num">订单号：<span>{$list.order_id}</span> <span class="copy">复制</span></div>
                <div class="dingdan_title">
                    {if $list.status eq '0'}待付款
                    {else if $list.status eq '1'}待发货
                    {else if $list.status eq '2'}已发货
                    {else if $list.status eq '3'}已完成
                    {else if $list.status eq '4'}已退款
                    {else if $list.status eq '5'}已关闭
                    {/if}
                </div>
            </div>
            <div class="buy_list_item_2">
                <div class="item2_s">
                    <div class="item2_s_div">
                        {$list.title}
                    </div>
                </div>
                <div class="item2_x">
                    <div class="item2_x_l">
                        <li>{$list.channel_name}|{$list.serv_name}|{$list.game_name}</li>
                        <li ><img class="imgimg_i" src="//cdn.66173.cn/mobile/trading/image/shangpin_detail/confirm_id.png" alt=""></li>
                        <li><img class="imgimg_i" src="//cdn.66173.cn/mobile/trading/image/shangpin_detail/jicun.png" alt="/"></li>
                    </div>
                    <div class="item2_x_r">x <span>{$list.amount}</span></div>
                </div>
            </div>
            <div class="buy_list_item_3">
                <div class="item_3_div1">
                    <div class="item_3_div1_s"><span>总价 <span class="totole">￥{$list.pay_money}</span></span></div>
                    <div class="item_3_div1_x">
                        {if $list.status eq '0'}
                        <div class="close_buy">关闭交易</div>
                        <!--<a href="trading_center.php?act=continue_pay&id={$list.id}">-->
                            <div class="continiu_buy">继续支付</div>
                        <!--</a>-->
                        {else if $list.status eq '1'}
                        <div class="close_buy2"></div>
                        <div class="continiu_buy2">联系客服</div>
                        {else if $list.status eq '2'}
                        <div class="close_buy">申请退款</div>
                        <div class="continiu_buy">确认收货</div>
                        {/if}
                    </div>
                </div>
            </div>
        </a>
        {/foreach}
    {/if}

</div>
</body>
<script>
    $(".buy_list_tab li").click(function () {
        $(this).addClass("border_b").siblings().removeClass("border_b")
    })
    $(".top_left").click(function () {
        history.back()
    })
    $(document).ready(function () {
        getParam()
    })
    function getParam(){
        C1=window.location.href.split("?")[1]; //得到id=楼主
        C2=C1.split("=")[1];
        $(".lll").eq(C2).addClass("border_b")
        }//得到楼主
</script>
</html>
